package com.wing.productionPlan.model.response;

import com.wing.qualityTesting.model.entity.QualityTestingRecordValue;
import com.wing.qualityTesting.model.request.QualityTestingRecordValueForm;
import com.wing.qualityTesting.model.response.QualityTestingRecordValueVO;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.time.LocalDateTime;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.wing.productionPlan.model.entity.QualityTestingRecordDetail;

/**
 * 质检记录详情表VO
 *
 * @author
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class QualityTestingRecordDetailVO {

    /**
     * ID
     */
    private Long id;

    /**
     * 创建时间
     */
    @JsonFormat(timezone = "GMT+8" , pattern = "yyyy-MM-dd HH:mm:ss" )
    private LocalDateTime createTime;
    @JsonFormat(timezone = "GMT+8" , pattern = "yyyy-MM-dd HH:mm:ss" )
    private LocalDateTime updateTime;

    /**
     * 创建者
     */
    private Long creator;

    /**
     * 修改者
     */
    private Long modifier;

    /**
     * 创建人
     */
    private String creatorName;

    /**
     * 修改人
     */
    private String modifierName;


    /**
     * day
     */
    private Integer day;

    /**
     * no
     */
    private Integer no;

    /**
     * 企业编号
     */
    private String enterpriseCode;

    /**
     * 质检记录明细编码
     */
    private String code;

    /**
     * 样品编码
     */
    private String sampleCode;

    /**
     * 质检参数结果
     */
    private String parametersResult;

    /**
     * 质检评定结果
     */
    private QualityTestingRecordDetail.QualityTestingResult qualityTestingResult;

    /**
    * 质检评定结果描述
    */
    @TableField(exist = false)
    private String qualityTestingResultDesc;

    public String getQualityTestingResultDesc() {
        return qualityTestingResult == null ? null : qualityTestingResult.getDesc();
    }

    /**
     * 质检记录id
     */
    private Long qualityTestingRecordId;

    /**
     * 质检任务单id
     */
    private Long qualityTestingTaskId;

    /**
     * 检验工站id
     */
    private Long inspectDeviceId;

    /**
     * 检验工站编号
     */
    private String inspectDeviceCode;

    /**
     * 工序id
     */
    private Long processId;

    /**
     * 工序名称
     */
    private String processName;
    /**
     * 描述
     */
    private String remark;

    /**
     * 质检参数结果名称
     */
    private String processQualityName;
    private String status;

    /**
     * 质检参数结果值
     */
    private String processQualityValueName;

    private List<QualityTestingRecordValue> qualityValueList;



    /**
     *合格数(简易独有)
     */
    private Integer okQuantity;
    /**
     *返修数(简易独有)
     */
    private Integer returnQuantity;
    /**
     *报废数(简易独有)
     */
    private Integer ngQuantity;
    /**
     *合格入仓库(简易独有)
     */
    private Long okWarehouseType;
    /**
     *报废入仓库(简易独有)
     */
    private Long ngWarehouseType;
    /**
     *返修入仓库(简易独有)
     */
    private Long returnWarehouseType;

    /**
     * 纸质单
     */
    private String paperSlipPic;

}
